-
Notifications
You must be signed in to change notification settings - Fork 353
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix bug when process OOMs due to retained LimitableRequestPublishers in RSocketServer #638
Conversation
c9da160
to
b55aac5
Compare
@@ -114,6 +118,9 @@ public static TcpServerTransport create(TcpServer server) { | |||
acceptor.apply(connection).then(Mono.<Void>never()).subscribe(c.disposeSubscriber()); | |||
}) | |||
.bind() | |||
.doOnNext( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to do that ? I'm wondering because we are opening the door to a new way to retain channels:
- Is there a use case where the server life is shorter than the application life ?
- If so, should we just shutdown event loops to force channels to be closed ?
- Is this related at all to the OOM since this is only doing anything when the server is closed ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@smaldini This is not related to OOM - just annoying bug living in reactor-netty for almost year, getting in a way when debugging. This change is my interpretation of what suggested as workaround by violeta at the bottom of reactor/reactor-netty#495. If I close Rsocket's server CloseableChannel
, I d expect connections -> rsockets are closed aswell. The reason many changes are squashed in PR is there exist long-running soak test, and we would like to run It fewer times for this release
b55aac5
to
59f3dd8
Compare
…cuted only on BaseSubscriber.cancel() Signed-off-by: Maksym Ostroverkhov <[email protected]>
…sableChannel close Signed-off-by: Maksym Ostroverkhov <[email protected]>
…andler Signed-off-by: Maksym Ostroverkhov <[email protected]>
Signed-off-by: Maksym Ostroverkhov <[email protected]>
Signed-off-by: Maksym Ostroverkhov <[email protected]>
Signed-off-by: Maksym Ostroverkhov <[email protected]>
remove rsocket-transport request coordination tests Signed-off-by: Maksym Ostroverkhov <[email protected]>
Signed-off-by: Maksym Ostroverkhov <[email protected]>
…on DisposableChannel close" This reverts commit 67bea79 Signed-off-by: Maksym Ostroverkhov <[email protected]>
59f3dd8
to
ea266c1
Compare
No description provided.